/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_partner_attribute.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_PARTNER_ATTRIBUTE
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_partner_attribute.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "table_ppm.h" 


CTable_PPM_PARTNER_ATTRIBUTE::CTable_PPM_PARTNER_ATTRIBUTE( )
 :NPCRecordSet( )
{
  setTableName( "PPM_PARTNER_ATTRIBUTE" );
  prepareTable();
  prepareQuery();
 
  PARTNER_ATTR_ID.setField( "PARTNER_ATTR_ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( PARTNER_ATTR_ID );
  makeKeyItem( PARTNER_ATTR_ID ); 
  PARTNER_ID.setField( "PARTNER_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( PARTNER_ID );
  ATTRIBUTE_VALUE.setField( "ATTRIBUTE_VALUE", DATA_CHAR, 4000, 0 );
  makeTableItem( ATTRIBUTE_VALUE );
  STATE.setField( "STATE", DATA_CHAR, 3, 0 );
  makeTableItem( STATE );
  EFF_DATE.setField( "EFF_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( EFF_DATE );
  EXP_DATE.setField( "EXP_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( EXP_DATE );
  STATE_DATE.setField( "STATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( STATE_DATE );
  SUP_ATTR_ID.setField( "SUP_ATTR_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( SUP_ATTR_ID );
}


CTable_PPM_PARTNER_ATTRIBUTE::CTable_PPM_PARTNER_ATTRIBUTE( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_PARTNER_ATTRIBUTE" );
  prepareTable();
  prepareQuery();
 
  PARTNER_ATTR_ID.setField( "PARTNER_ATTR_ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( PARTNER_ATTR_ID );
  makeKeyItem( PARTNER_ATTR_ID ); 
  PARTNER_ID.setField( "PARTNER_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( PARTNER_ID );
  ATTRIBUTE_VALUE.setField( "ATTRIBUTE_VALUE", DATA_CHAR, 4000, 0 );
  makeTableItem( ATTRIBUTE_VALUE );
  STATE.setField( "STATE", DATA_CHAR, 3, 0 );
  makeTableItem( STATE );
  EFF_DATE.setField( "EFF_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( EFF_DATE );
  EXP_DATE.setField( "EXP_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( EXP_DATE );
  STATE_DATE.setField( "STATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( STATE_DATE );
  SUP_ATTR_ID.setField( "SUP_ATTR_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( SUP_ATTR_ID );
}

CTable_PPM_PARTNER_ATTRIBUTE::~CTable_PPM_PARTNER_ATTRIBUTE( )
{
    close();
}

